package com.vae.mall.goods.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 *  SPU  Standard Product Unit (标准化产品单元)
 * @Description 商品信息聚合的最小单位，是一组可复用、易检索的标准化信息的集合
 * @author vae
 * @since 1.0
 ****/
@Data
@AllArgsConstructor
@NoArgsConstructor
//MyBatisPlus表映射注解
@TableName(value = "spu")
//jpa注解
@Table
public class Spu {

    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    private String name;
    private String intro;
    @Column(name = "brand_id")
    private Integer brandId;
    @Column(name = "category_one_id")
    private Integer categoryOneId;
    @Column(name = "category_two_id")
    private Integer categoryTwoId;
    @Column(name = "category_three_id")
    private Integer categoryThreeId;
    private String images;
    //售后服务
    @Column(name = "after_sales_service")
    private String afterSalesService;
    //介绍
    private String content;
    //规格列表
    @Column(name = "attribute_list")
    private String attributeList;
    //是否上架,0已下架，1已上架
    @Column(name = "is_marketable")
    private Integer isMarketable;
    //是否删除,0:未删除，1：已删除
    @Column(name = "is_delete")
    private Integer isDelete;
    //审核状态，0：未审核，1：已审核，2：审核不通过
    private Integer status;
}
